home *** CD-ROM | disk | FTP | other *** search
- //
- // The Fusion Library Interface for DOS
- // Version 1.06c
- // Copyright (C) 1990, 1991, 1992
- // Software Dimensions
- //
- // BlazeClass
- //
-
- #ifndef __BCPLUSPLUS__
- #pragma inline
- #endif
-
- #include "fli.h"
-
- #ifdef __BCPLUSPLUS__
- #pragma hdrstop
- #endif
-
- #define I asm
-
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- //
- // SeeKey()
- //
- // Checks for a key stroke
- //
- //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-
- int BlazeClass::SeeKey()
- {
- I mov ah,1
- I int 16h
- I jnz GotChar
-
- return 0;
-
- GotChar:
-
- I mov bx,ax
- I and bx,00ffh
- I and ax,0ff00h
- I xchg al,ah
- I or bx,bx
- I je UseAX
- return _BX;
-
- UseAX:
-
- I add ax,256
- return _AX;
- }
-